package com.parachutes.aspmonitorapi.feign;

import com.parachutes.aspmonitorapi.service.EmailService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import javax.mail.Session;
import javax.mail.internet.MimeMessage;

@FeignClient(value = "asp-monitor-api")
public interface RemoteEmailService extends EmailService {

    @GetMapping("monitor/email/send")
    void send(MimeMessage message) throws Exception;
}

